package com.hecate.common.db.basedao.select;

import com.hecate.common.db.basedao.provider.select.HecateBaseSelectProvider;
import com.hecate.common.db.basedo.IBase;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @author 黄星星
 * @date 2020-12-18
 */
@RegisterMapper
public interface HecateFindAllDao<T extends IBase> {

    @SelectProvider(type = HecateBaseSelectProvider.class, method = "dynamicSQL")
    List<T> findAll(@Param("cid") Long cid);
}
